import java.util.Scanner;
/* 你的代码将被嵌入到这里 */

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        double l = input.nextDouble();
        double w = input.nextDouble();
        double h = input.nextDouble();
        Cuboid myCuboid = new Cuboid(l, w, h);
        System.out.println(myCuboid.getArea());
        System.out.println(myCuboid.getVolume());

        input.close();
    }
}
class Cuboid {
    private double length,width,height;

    public Cuboid(double length, double width, double height) {
        super();
        this.length = length;
        this.width = width;
        this.height = height;
    }

    public Cuboid() {
        this.length=1;
        this.width=1;
        this.height=1;
    }
    public double getArea() {
        this.length = length;
        this.width = width;
        this.height = height;
        return ((length*width)+(width*height)+(length*height))*2;
    }
    public double getVolume() {
        this.length = length;
        this.width = width;
        this.height = height;
        return length*width*height;
    }
}